"合集运算"
set01 = {1,2,3,4}
set02 = {5,6,7,8}
"交集"
print(set01&set02)
"并集"
print(set01|set02)
"差集"
print(set01-set02)
"对称差集"
print(set01^set02)